package com.integration.gateway.pojo;

import lombok.Data;

import java.io.Serializable;
import java.util.List;
@Data
public class Delivery implements Serializable {

    private List<Drink> deliveryDrinks;

    private int orderNumber;

    public Delivery(List<Drink> deliveryDrinks){
        assert(deliveryDrinks.size()>0);
        this.deliveryDrinks = deliveryDrinks;
        this.orderNumber = deliveryDrinks.get(0).getOrderNumber();
    }

}
